
package com.microweb.toastmaster.dao;

import java.util.List;

import com.microweb.toastmaster.dao.Dao;
import com.microweb.toastmaster.model.Speech;

public interface SpeechDao extends Dao {

    /**
     * Retrieves all of the speechs
     */
    public List getSpeechs(Speech speech);

    /**
     * Gets speech's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the speech's id
     * @return speech populated speech object
     */
    public Speech getSpeech(final Long id);

    /**
     * Saves a speech's information
     * @param speech the object to be saved
     */    
    public void saveSpeech(Speech speech);

    /**
     * Removes a speech from the database by id
     * @param id the speech's id
     */
    public void removeSpeech(final Long id);
}

